package pers.litao.bit.product.openfeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import pers.litao.bit.commons.utils.R;


/**
 * @author 李涛
 * @date 2020-12-01 13:40
 */
@FeignClient("bit-user-service")
public interface UserFeignService {
    @RequestMapping(value = "/user/userinfo/getuser/{id}",method = RequestMethod.GET)
    R getUser(@PathVariable("id") Long id);
    @RequestMapping(value = "/user/userinfo/getUserIds",method = RequestMethod.POST)
     R getUserIds(@RequestBody Long id);
}
